package com.qch.edu.ad.remote;

import com.qch.edu.ad.dto.PromotionSpaceDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author qch
 * @Date 2021/8/31
 */
//edu-ad-boot与yaml中spring:
//  application:
//    name: edu-ad-boot一致
@FeignClient(name = "my-edu-ad-boot",path = "/ad")
public interface AdRemoteService{
    @GetMapping("/space/getAllSpaces")
    List<PromotionSpaceDTO>getAllSpace();
}
